<div class="macs view">
<h2><?php  __('Mac');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $mac['Mac']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Mac'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $mac['Mac']['mac']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Mactype'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($mac['Mactype']['id'], array('controller' => 'mactypes', 'action' => 'view', $mac['Mactype']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Status'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($mac['Status']['id'], array('controller' => 'statuses', 'action' => 'view', $mac['Status']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Mac', true), array('action' => 'edit', $mac['Mac']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Mac', true), array('action' => 'delete', $mac['Mac']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $mac['Mac']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Macs', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Mac', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Mactypes', true), array('controller' => 'mactypes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Mactype', true), array('controller' => 'mactypes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Statuses', true), array('controller' => 'statuses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Status', true), array('controller' => 'statuses', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Blacklists', true), array('controller' => 'blacklists', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Blacklist', true), array('controller' => 'blacklists', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Customershasmacs', true), array('controller' => 'customershasmacs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Customershasmac', true), array('controller' => 'customershasmacs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Partrequests', true), array('controller' => 'partrequests', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Partrequest', true), array('controller' => 'partrequests', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Runshasmacs', true), array('controller' => 'runshasmacs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Runshasmac', true), array('controller' => 'runshasmacs', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Blacklists');?></h3>
	<?php if (!empty($mac['Blacklist'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Date'); ?></th>
		<th><?php __('Mac Id'); ?></th>
		<th><?php __('Problem Id'); ?></th>
		<th><?php __('Status Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($mac['Blacklist'] as $blacklist):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $blacklist['id'];?></td>
			<td><?php echo $blacklist['date'];?></td>
			<td><?php echo $blacklist['mac_id'];?></td>
			<td><?php echo $blacklist['problem_id'];?></td>
			<td><?php echo $blacklist['status_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'blacklists', 'action' => 'view', $blacklist['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'blacklists', 'action' => 'edit', $blacklist['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'blacklists', 'action' => 'delete', $blacklist['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $blacklist['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Blacklist', true), array('controller' => 'blacklists', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Customershasmacs');?></h3>
	<?php if (!empty($mac['Customershasmac'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Customer Id'); ?></th>
		<th><?php __('Mac Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($mac['Customershasmac'] as $customershasmac):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $customershasmac['id'];?></td>
			<td><?php echo $customershasmac['customer_id'];?></td>
			<td><?php echo $customershasmac['mac_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'customershasmacs', 'action' => 'view', $customershasmac['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'customershasmacs', 'action' => 'edit', $customershasmac['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'customershasmacs', 'action' => 'delete', $customershasmac['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $customershasmac['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Customershasmac', true), array('controller' => 'customershasmacs', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Partrequests');?></h3>
	<?php if (!empty($mac['Partrequest'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Headernumber'); ?></th>
		<th><?php __('Detailnumber'); ?></th>
		<th><?php __('Xto'); ?></th>
		<th><?php __('Xfrom'); ?></th>
		<th><?php __('Xtodate'); ?></th>
		<th><?php __('Trackingnumber'); ?></th>
		<th><?php __('Notes'); ?></th>
		<th><?php __('Weborder Id'); ?></th>
		<th><?php __('Mac Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($mac['Partrequest'] as $partrequest):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $partrequest['id'];?></td>
			<td><?php echo $partrequest['headernumber'];?></td>
			<td><?php echo $partrequest['detailnumber'];?></td>
			<td><?php echo $partrequest['xto'];?></td>
			<td><?php echo $partrequest['xfrom'];?></td>
			<td><?php echo $partrequest['xtodate'];?></td>
			<td><?php echo $partrequest['trackingnumber'];?></td>
			<td><?php echo $partrequest['notes'];?></td>
			<td><?php echo $partrequest['weborder_id'];?></td>
			<td><?php echo $partrequest['mac_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'partrequests', 'action' => 'view', $partrequest['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'partrequests', 'action' => 'edit', $partrequest['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'partrequests', 'action' => 'delete', $partrequest['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $partrequest['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Partrequest', true), array('controller' => 'partrequests', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Runshasmacs');?></h3>
	<?php if (!empty($mac['Runshasmac'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Run Id'); ?></th>
		<th><?php __('Mac Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($mac['Runshasmac'] as $runshasmac):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $runshasmac['id'];?></td>
			<td><?php echo $runshasmac['run_id'];?></td>
			<td><?php echo $runshasmac['mac_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'runshasmacs', 'action' => 'view', $runshasmac['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'runshasmacs', 'action' => 'edit', $runshasmac['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'runshasmacs', 'action' => 'delete', $runshasmac['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $runshasmac['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Runshasmac', true), array('controller' => 'runshasmacs', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
